<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
</body>
<script>
    //2 sessionStorage
    sessionStorage.setItem('test', 11);
    console.log(sessionStorage.getItem('test'));
    sessionStorage.test2 = 22;
    console.log(sessionStorage.test2);
    //3 localStorage
    localStorage.setItem('test', 11);
    console.log(localStorage.getItem('test'));
    localStorage.test2 = 22;
    console.log(localStorage.test2);
    //1 cookie
</script>
</html>